<template>
	<view class="container">
		<view class="list-container">
			<!-- 商户登记 -->
			<view class="list-item" @click="gotoMerchantRegistration">
				<view class="list-item-icon">
					<image src="/static/img/merchant-registration-icon.png" class="icon"></image>
				</view>
				<view class="list-item-content">
					<text class="title">商户登记</text>
					<text class="subtitle">登记已开通商户</text>
				</view>
				<view class="list-item-arrow">
					<image src="/static/img/arrow-right.png" class="arrow"></image>
				</view>
			</view>

			<!-- 商户查询 -->
			<view class="list-item" @click="gotoMerchantQuery">
				<view class="list-item-icon">
					<image src="/static/img/merchant-query-icon.png" class="icon"></image>
				</view>
				<view class="list-item-content">
					<text class="title">登记查询</text>
					<text class="subtitle">查询商户信息、终端编号、商户编号等基本信息</text>
				</view>
				<view class="list-item-arrow">
					<image src="/static/img/arrow-right.png" class="arrow"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {

		}
	},
	methods: {
		gotoMerchantRegistration() {
			uni.navigateTo({ url: '/pages/Merchant/merchantRegistration' });
		},
		gotoMerchantQuery() {
			// 跳转到商户查询页面
			// uni.navigateTo({ url: '/pages/myMer/myMer' });
			uni.navigateTo({
					url:'/pages/myEquipment/equipmentList'
				})
		}
	}
}
</script>

<style scoped>
.container {
	padding: 20rpx;
	background-color: #f8f8f8; /* 类似图片的背景色 */
	height: 100vh;
}

.header {
	/* 根据实际需要调整 */
	font-size: 36rpx;
	font-weight: bold;
	text-align: center;
	padding: 30rpx 0;
	/* 可能需要返回按钮，暂时省略 */
}

.list-container {
	background-color: #ffffff;
	border-radius: 16rpx;
	margin-top: 20rpx;
	overflow: hidden; /* 确保圆角生效 */
}

.list-item {
	display: flex;
	align-items: center;
	padding: 30rpx;
	border-bottom: 1rpx solid #eee; /* 列表项之间的分割线 */
}

.list-item:last-child {
	border-bottom: none; /* 最后一个列表项无下边框 */
}

.list-item-icon {
	margin-right: 20rpx;
}

.icon {
	width: 60rpx; /* 根据实际图标大小调整 */
	height: 60rpx;
}

.list-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.title {
	font-size: 32rpx;
	color: #333;
	margin-bottom: 8rpx;
}

.subtitle {
	font-size: 24rpx;
	color: #999;
}

.list-item-arrow {
	margin-left: 20rpx;
}

.arrow {
	width: 24rpx; /* 箭头大小 */
	height: 24rpx;
}
</style> 